﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data;
using Shuba.Model;

namespace Shuba.Business
{
    public class BranchDevice
    {
        private Shuba.Data.BranchDevice _data = new Shuba.Data.BranchDevice();

        public List<BranchDeviceInfo> GetList(string keyword)
        {
            return _data.GetList(keyword);
        }               

        public BranchDeviceInfo Get(string imei)
        {
            return _data.Get(imei);
        }        

        public int Save(BranchDeviceInfo info)
        {         
            return _data.Save(info);
        }

        public List<BranchDeviceInfo> GetListApproval(string UPDATE_BY)
        {
            return _data.GetListApproval(UPDATE_BY);
        }        

        public void Approve(string imei, string ACT_TYPE)
        {
            _data.Approve(imei, ACT_TYPE);
        }

        public void Reject(string imei)
        {
            _data.Reject(imei);
        }

        public BranchDeviceInfo GetApprovalByID(string imei)
        {
            return _data.GetApprovalByID(imei);   
        }    
    }
}